package pack2;

public class java11 {
    public static void main(String[] args){
    int num=12315;
    int res=0;
        while(num>0){
            int i=num%10;
            num/=10;
            res=(res*10)+i;
        }
        System.out.println(res);
    }
}
